//
//  CLSettingSwitchReuseView.m
//  CLBrowser
//
//  Created by 梁慧聪 on 2022/7/3.
//

#import "CLSettingSwitchReuseView.h"

@implementation CLSettingSwitchReuseView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
    [self.switchControl addTarget:self action:@selector(handleSwitchValueChanged:) forControlEvents:UIControlEventValueChanged];
}
- (void)handleSwitchValueChanged:(UISwitch *)switchControl {
    if (self.valueChangedBlock) {
        self.valueChangedBlock(switchControl);
    }
}
+ (NSString *)identifier {
    return @"CLSettingSwitchReuseView";
}
@end
